
	<form action="./m.php?frm=action&mdl=index" name="iForm" id="iForm" method="post" target="eBody">
		<input type="hidden" name="id" id="id" value="{$info.id}" />
		<input type="hidden" name="libraryid" id="libraryid" value="{$info.libraryid}" />

		<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
			<caption>
			{$_page.caption}
			</caption>
			<tbody>
				<tr>
					<th style="width:160px;">语言：</th>
					<td><select name="langid" id="langid" class="select">{$info.lang_options}</select></td>
				</tr>
				<tr>
					<th>模块：</th>
					<td><ul id="ui_menu">
								<li><a href="#" id="parent_library"> {$info.library_name} </a>
									<ul>
										{$info.library_tree}
									</ul>
								</li>
							</ul></td>
				</tr>
				<tr>
					<th>状态：</th>
					<td><input type="checkbox" name="state" value="1" {if $state}checked{/if} /></td>
				</tr>
				<tr>
					<th>标识：</th>
					<td><input type="text" name="mark" id="mark" value="{$info.mark}" class="input" style="width:160px;" /></td>
				</tr>
				<tr>
					<th>内容：</th>
					<td><textarea name="content" id="content" class="textarea" style="width:480px;">{$info.content}</textarea></td>
				</tr>
			</tbody>
			<tfoot id="cmd">
				<tr>
					<th>&nbsp;</th>
					<td><button name="formAction" value="{$_act.frm}.{$_act.mdl}_{$_act.do}" class="button">{$l.submit}</button>
						<input type="reset" name="btnReset" value="重设" class="button" /></td>
				</tr>
			</tfoot>
		</table>
	</form>

<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
	{literal}

	function set_library_id(obj, libraryid){
		$('#libraryid').val(libraryid);
		$('#parent_library').html('<span class="ui-menu-icon ui-icon ui-icon-carat-1-e"></span>'+$(obj).text());
	}

	jQuery(function($){
		$('#ui_menu').menu();

		/*******************************************************************************
		 * 表单验证
		 *******************************************************************************/
		var objVf = $('form#iForm').Validform({
			showAllError	: true			// 显示所有错误提示信息
			,label			: 'th'			// 在没有绑定nullmsg时查找要显示的提示文字，默认查找".Validform_label"下的文字
			,tiptype		: vf_fadein		// 自定义
			// ,tiptype		: 3 			// 右侧
			,beforeSubmit	: function(fm){	// 隐藏或不可见元素在这里判断
				var errmsg = [];
				var libraryid	= parseInt(fm.find('input[name="libraryid"]').val());
				if(libraryid <= 0)errmsg.push('请选择所在模块');
				if(errmsg.length > 0){
					showmsg_warning(errmsg.join('<br />'));
					return false;
				}
			}
		});
		
		objVf.addRule([
			{	ele : 'input[name="mark"]',			datatype : 'c2-20'		}
			,{	ele : 'input[name="constent"]',		datatype : 's1-50'		}
		]);

	});
	{/literal}
-->
</script>